﻿<!--{inc(header.view.html)}-->

<div class="header">
  <div class="nav">
    <ul id="nav_list">
      <li><a href="#" class="nav_icon" target="mainframe">产品信息列表</a></li>
      <li><a href="index.php?app=prot&act=add"  target="mainframe">新增产品信息</a></li>
      <li><a href="index.php?app=prot&act=cagrylist"  target="mainframe">产品分类列表</a></li>
      <li><a href="index.php?app=prot&act=cagryadd"  target="mainframe">新增产品分类</a></li>
    </ul>
  </div>
</div>
<div id="content">
  <h1>产品信息列表</h1>
  <div>
    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span ></span> </div>
    <style type="text/css">
.search_box {
padding:10px;
vertical-align:middle;
}
.search_box .l {
float:left;
vertical-align:middle;
}
.search_box .r {
float:right;
}
</style>
    <form  method="post" action="?app=prot&act=index" >
      <div class="search_box">
        <div class="l"><img  src="{$web_view_dir}style/images/it_nav.gif" align="middle"> 排序方式:
          <select  onchange="ato_url('index.php?app=prot&act=index',this);" id="orderby">
            <option class="txtgreen" value="0">请选择...</option>
            <option value="timeasc" <!--{if ($v == 'timeasc')}-->selected<!--{/if}-->>时间升序↑</option>
            <option value="timedesc" <!--{if ($v == 'timedesc')}-->selected<!--{/if}-->>时间降序↓</option>
            <option value="showyes" <!--{if ($v == 'showyes')}-->selected<!--{/if}-->>显示</option>
            <option value="showno" <!--{if ($v == 'showno')}-->selected<!--{/if}-->>隐藏</option>
            <option value="topyes" <!--{if ($v == 'topyes')}-->selected<!--{/if}-->>置顶</option>
            <option value="topno" <!--{if ($v == 'topno')}-->selected<!--{/if}-->>不置顶</option>
            <option value="recyes" <!--{if ($v == 'recyes')}-->selected<!--{/if}-->>推荐</option>
            <option value="recno" <!--{if ($v == 'recno')}-->selected<!--{/if}-->>不推荐</option>
            <option value="indexyes" <!--{if ($v == 'indexyes')}-->selected<!--{/if}-->>主页头条</option>
            <option value="indexno" <!--{if ($v == 'indexno')}-->selected<!--{/if}-->>非主页头条</option>
          </select>
        </div>
        <div class="r">
          <input type="text" title="多个关键字用空格隔开" value="{$word}" name="word">
          <input type="submit" value="搜索标题" class="buton">
        </div>
      </div>
    </form>
    <div class="clear"></div>
    <table width="100%" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
      <tbody>
    
        <tr>
          <td class="bold" width="40px" align="center" >ID</td>
          <td class="bold">产品名</td>
          <td class="bold">分 类</td>
          <td width="25%" class="bold" align="center">发布时间</td>
          <td class="bold">操作</td>
        </tr>
        
        <!--{foreach($lw_data as $_key => $_value )}-->
        
        <tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
          <td  align="center">{$_value.id}</td>
          <td><a href="{SITE_URL}/?app=prot&act=show&id={$_value.id}" target="_blank">{$_value.title}</a></td>
          <td><!--{if(isset($categorylist[$_value.cat_id]))}-->{$categorylist[$_value.cat_id]}<!--{/if}--></td>
          <td>{$_value.add_time|dateymdgis}</td>
          <td><a href="#" id="op_{$_key}" onMouseOver="show_menu('op_{$_key}','opdiv_{$_key}','show','left')" onMouseOut="show_menu('op_{$_key}','opdiv_{$_key}','hide','left')"><img src="{$web_view_dir}style/images/menu_edit.gif" align="absmiddle" border="0" /></a>
            <div id="opdiv_{$_key}" class="operate operate_common"> <a href="?app=prot&act=edit&id={$_value.id}" target="mainframe">修改</a> <a href="?app=prot&act=del&id={$_value.id}" onClick="return confirm('确认删除此项？此操作无法恢复！');">删除</a> </div></td>
        </tr>
        
        <!--{/foreach}-->
          
      <style type="text/css">

.p_bar {
margin-top:5px;
}
.p_info {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_curpage {
border:1px solid #CCCCCC;
color:#FF0000;
font-weight:bold;
margin:0 2px;
padding:3px 5px;
text-align:center;
}

.p_num  {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_redirect {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}

a {
color:#003366;
text-decoration:none;
}


</style>
      <tr>
        <td colspan="7"><div class="p_bar"> <span class="p_info">Total:&nbsp;<b>{$lw_page.total}</b>&nbsp;&nbsp;共{$lw_page.curr.num}/{$lw_page.totalpage}页</span> <a class="p_num" href="{$lw_page.head}">首页</a> <a class="p_num" href="{$lw_page.up}">&lt;&lt;</a> <a class="p_num" href="{$lw_page.up}">上一页</a> <span class="p_curpage">{$lw_page.curr.num}</span> <a  class="p_num" href="{$lw_page.down}">下一页</a> <a  class="p_num" href="{$lw_page.down}">&gt;&gt;</a> <a  class="p_num" href="{$lw_page.foot}">末页</a> </div></td>
      </tr>
        </tbody>
      
    </table>
  </div>
</div>

<!--{inc(footer.view.html)}-->